﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="UserInfAdd.aspx.cs" Inherits="GuoTao.Web.Admin.UserInfAdd" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<link href="inc/dv.css" rel="stylesheet" type="text/css" />
<style type="text/css">
<!--
body {
	background-color: #CAD7F7;
}
-->
</style>
<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
     <title>增加会员</title>
</head>
<body>
<script>
function a()
{

 if(document.getElementById("TxtUseraccount").value=="")
 {
 alert("会员帐号不能为空！");
 document.getElementById("TxtUseraccount").focus();
 return false;
 }
 
  if(document.getElementById("TxtUsername").value=="")
 {
 alert("真实名称不能为空！");
 document.getElementById("TxtUsername").focus();
 return false;
 }
 
  if(document.getElementById("TxtUserpwd").value=="")
 {
 alert("会员密码不能为空！");
 document.getElementById("TxtUserpwd").focus();
 return false;
 }
 
  if(document.getElementById("TxtUserpwd2").value=="")
 {
 alert("重复密码不能为空！");
 document.getElementById("TxtUserpwd2").focus();
 return false;
 }
 
   if(document.getElementById("TxtUserpwd").value!=document.getElementById("TxtUserpwd2").value)
 {
 alert("密码与重复密码不相同！");
 document.getElementById("TxtUserpwd2").focus();
 return false;
 }
 
  if(document.getElementById("TxtUseradd").value==""&&document.getElementById("TxtUserphone").value==""&&document.getElementById("TxtUseremail").value=="")
 {
 alert("联系人地址，联系电话，Email不能同时为空！");
 document.getElementById("TxtUseradd").focus();
 return false;
 }

}
</script>
    <form id="form1" runat="server">
    <div>
   
<table  width="85%" border="0" cellspacing="1" cellpadding="0"  align=center class="tableBorder">
  <tr> 
<th height=24 colspan=2><B>增加会员</B></th>
</tr>
  <tr>
    <td><table width="100%" border="0" cellspacing="1" cellpadding="0" align="center" bordercolorlight="#ceceff" bordercolordark="#ecf5ff">
      <tr>
        <td colspan="2" align="center" class="STYLE2">&nbsp;</td>
      </tr>
      <tr>
        <td colspan="2" height="0"> </td>
      </tr>
      <tr  bgcolor="#A3B2CC">
        <td width="18%" align="center" bgcolor="#B8DEDC">&nbsp;</td>
        <td width="82%" align="center" bgcolor="#B8DEDC">&nbsp;</td>
        </tr>
	   <tr>
        <td width="18%" height="24" align="right" bgcolor="" class="forumrow">会员帐号：</td>
        <td width="82%" height="24" align="left" bgcolor="" class="forumrow"><label>
          <input type="text" name="XM" id="TxtUseraccount" runat="server" />
            <span style="color: #ff0000">*不能为空</span></label></td>
        </tr>
			   <tr>
        <td width="18%" height="24" align="right" bgcolor="" class="forumrow">真实名称：</td>
        <td width="82%" height="24" align="left" bgcolor="" class="forumrow"><label>
          <input type="text" name="XM" id="TxtUsername" runat="server" /><span style="color: #ff0000">*不能为空</span></label></td>
        </tr>
			   <tr>
        <td width="18%" height="24" align="right" bgcolor="" class="forumrow">会员密码：</td>
        <td width="82%" height="24" align="left" bgcolor="" class="forumrow"><label>
          <input type="text" name="XM" id="TxtUserpwd" runat="server" />
            <span style="color: #ff0000"><span style="color: #ff0000">*不能为空</span></span></label></td>
        </tr>
			   <tr>
        <td width="18%" height="24" align="right" bgcolor="" class="forumrow">重复密码：</td>
        <td width="82%" height="24" align="left" bgcolor="" class="forumrow"><label>
          <input type="text" name="XM" id="TxtUserpwd2" runat="server" />
            <span style="color: #ff0000">*不能为空</span></label></td>
        </tr>
			   <tr>
        <td width="18%" height="24" align="right" bgcolor="" class="forumrow">详细地址：</td>
        <td width="82%" height="24" align="left" bgcolor="" class="forumrow"><label>
          <input type="text" name="XM" id="TxtUseradd" runat="server" /> <font color=red>*联系人地址，联系电话，Email不能同时为空</font>
        </label></td>
        </tr>
		<tr>
        <td width="18%" height="24" align="right" bgcolor="" class="forumrow">联系电话：</td>
        <td width="82%" height="24" align="left" bgcolor="" class="forumrow"><input type="text" name="Dwmc" id="TxtUserphone" runat="server" /></td>
        </tr>
			<tr>
        <td width="18%" height="24" align="right" bgcolor="" class="forumrow">联系Email：</td>
        <td width="82%" height="24" align="left" bgcolor="" class="forumrow"><input type="text" name="Dwmc" id="TxtUseremail" runat="server" /></td>
        </tr>
				<tr>
        <td width="18%" align="right" bgcolor="" class="forumrow" style="height: 24px">修改权限：</td>
        <td width="82%" align="left" bgcolor="" class="forumrow" style="height: 24px">
            &nbsp;<input name="radiobutton" type="radio" value="1" checked id="RadUserflag1" runat="server">
          普通会员 &nbsp;&nbsp;&nbsp;&nbsp;
            <input type="radio" name="radiobutton" value="2" id="RadUserflag2" runat="server">            管理员（做程序的时候加上判断，如果是管理员可修改，如果是普通会员不可见）</td>
				</tr>			
				 <tr>
        <td width="18%" height="24" align="right" bgcolor="" class="forumrow">&nbsp;</td>
        <td width="82%" height="24" align="left" bgcolor="" class="forumrow">
          <label>
              <asp:Button ID="BtnSubmit" runat="server" Text="提交" OnClick="BtnSubmit_Click" OnClientClick="javascript:return a();" />&nbsp;
          </label>
          <label>
            <input type="reset" name="Submit" value="重置" />
            </label></td>
				 </tr>
   </table></td>
  </tr>
</table>
    </div>
    </form>
</body>
</html>
